package com.ruoyi.loupan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.loupan.mapper.TbPremisesFacilityMapper;
import com.ruoyi.loupan.domain.TbPremisesFacility;
import com.ruoyi.loupan.service.ITbPremisesFacilityService;

/**
 * 楼盘配套Service业务层处理
 * 
 * @author wukaige
 * @date 2021-07-01
 */
@Service
public class TbPremisesFacilityServiceImpl implements ITbPremisesFacilityService 
{
    @Autowired
    private TbPremisesFacilityMapper tbPremisesFacilityMapper;

    /**
     * 查询楼盘配套
     * 
     * @param id 楼盘配套ID
     * @return 楼盘配套
     */
    @Override
    public TbPremisesFacility selectTbPremisesFacilityById(Long id)
    {
        return tbPremisesFacilityMapper.selectTbPremisesFacilityById(id);
    }

    /**
     * 查询楼盘配套列表
     * 
     * @param tbPremisesFacility 楼盘配套
     * @return 楼盘配套
     */
    @Override
    public List<TbPremisesFacility> selectTbPremisesFacilityList(TbPremisesFacility tbPremisesFacility)
    {
        return tbPremisesFacilityMapper.selectTbPremisesFacilityList(tbPremisesFacility);
    }

    /**
     * 新增楼盘配套
     * 
     * @param tbPremisesFacility 楼盘配套
     * @return 结果
     */
    @Override
    public int insertTbPremisesFacility(TbPremisesFacility tbPremisesFacility)
    {
        return tbPremisesFacilityMapper.insertTbPremisesFacility(tbPremisesFacility);
    }

    /**
     * 修改楼盘配套
     * 
     * @param tbPremisesFacility 楼盘配套
     * @return 结果
     */
    @Override
    public int updateTbPremisesFacility(TbPremisesFacility tbPremisesFacility)
    {
        return tbPremisesFacilityMapper.updateTbPremisesFacility(tbPremisesFacility);
    }

    /**
     * 批量删除楼盘配套
     * 
     * @param ids 需要删除的楼盘配套ID
     * @return 结果
     */
    @Override
    public int deleteTbPremisesFacilityByIds(Long[] ids)
    {
        return tbPremisesFacilityMapper.deleteTbPremisesFacilityByIds(ids);
    }

    /**
     * 删除楼盘配套信息
     * 
     * @param id 楼盘配套ID
     * @return 结果
     */
    @Override
    public int deleteTbPremisesFacilityById(Long id)
    {
        return tbPremisesFacilityMapper.deleteTbPremisesFacilityById(id);
    }
}
